package com.springboot.ww.platform.pd.lms.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2024-07-26 15:59
 */
@NoArgsConstructor
@Data
public class PdProductStatusResp {


    @JsonProperty("result")
    private ResultDTO result;
    @JsonProperty("success")
    private Boolean success;
    @JsonProperty("requestId")
    private String requestId;
    @JsonProperty("errorCode")
    private Integer errorCode;
    @JsonProperty("errorMsg")
    private String errorMsg;

    @NoArgsConstructor
    @Data
    public static class ResultDTO {
        @JsonProperty("total")
        private Integer total;
        @JsonProperty("dataList")
        private List<DataListDTO> dataList;

        @NoArgsConstructor
        @Data
        public static class DataListDTO {
            @JsonProperty("skcList")
            private List<SkcListDTO> skcList;
            @JsonProperty("productId")
            private Long productId;

            @NoArgsConstructor
            @Data
            public static class SkcListDTO {
                @JsonProperty("skcId")
                private Long skcId;
                @JsonProperty("skuList")
                private List<SkuListDTO> skuList;
                @JsonProperty("selectStatus")
                private Integer selectStatus;

                @NoArgsConstructor
                @Data
                public static class SkuListDTO {
                    @JsonProperty("skuId")
                    private Long skuId;
                }
            }
        }
    }
}
